<template>
    <div class="edit-device">
        <index-breadcrumb :breadcrumb-list="breadcrumbList" :isShow="true"></index-breadcrumb>
        <EditBusinessAccount></EditBusinessAccount>
    </div>
</template>

<script>
import EditBusinessAccount from "./includes/EditBusinessAccount";

export default {
    name: "EditBusinessAccountMsg",
    components: {
        EditBusinessAccount
    },
    data() {
        return {
            deviceData: null,
            breadcrumbList: [
                {
                    title: "商务客户管理",
                    path: "/businessAccount"
                },
                {
                    title: "新增编辑商务客户"
                }
            ]
        };
    },
    activated() {
        const businessAccountId = this.$route.query.businessAccountId;
        if (businessAccountId) {
            this.breadcrumbList[1].title = "编辑商务客户";
        } else {
            this.breadcrumbList[1].title = "创建商务客户";
        }
    }
};
</script>

<style lang="sass" scoped>

</style>
